
#include <iostream>
#include <map>

using namespace std;

int main(){
	multimap<string, int> m;
	m.insert(make_pair("zhangsian", 88));
	m.insert(make_pair("lisi", 80));
	m.insert(make_pair("zhangsian", 60));
	m.insert(make_pair("lisi", 30));
	m.insert(make_pair("isi", 10));
	m.insert(make_pair("lii", 0));

	typedef multimap<string, int>::iterator IT;
	for(IT it = m.begin(); it != m.end(); ++ it)
		cout << (*it).first << ':' << (*it).second << endl;

	cout << "------------------------" << endl;
	if(m.erase("zhangsian"))
		cout << "delete zhangsian" << endl;

	for(auto const& p : m)
		cout << p.first << p.second << endl;

	return 0;
}
